package com.onlineclassbackstage.beans;

import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

@Data
public class Comment implements Serializable {

    private int id;
    private User user;
    private Course course;
    private int content;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date time;


}
